outputdir=mfa_output
data_root=./data_aishell3
wav_text_pair=$mfa_out_2/wav_text_pair.csv
linked_wav=linked_wav
lexicon_path=lexicon.txt
mfa_lab=mfa_lab

python ai_shell3_data.py $data_root $wav_text_pair 

python mfa_train_prepare.py $data_root $outputdir $wav_text_pair $linked_wav $mfa_lab $lexicon_path

mfa train -j 8 --phone_set PINYIN --overwrite \
    -a $outputdir/$linked_wav  \
    $outputdir/$mfa_lab \
    $outputdir/$lexicon_path \
    $outputdir/mfa_model/mfa_model.zip $outputdir/TextGrid